import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Base from '../views/base/index.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: Base
  },
  {
    path: '/withRotate',
    name: 'withRotate',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "withRotate" */ '../views/withRotate/index.vue')
  },
  {
    path: '/mouseOperate',
    name: 'mouseOperate',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/mouseOperate/index.vue')
  },
  {
    path: '/vertex',
    name: 'vertex',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/vertex/index.vue')
  },
  {
    path: '/shadow',
    name: 'shadow',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/shadow/index.vue')
  },
  {
    path: '/texture',
    name: 'texture',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/texture/index.vue')
  },
  {
    path: '/repeat',
    name: 'repeat',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/repeat/index.vue')
  },
  {
    path: '/dataTexture',
    name: 'dataTexture',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/dataTexture/index.vue')
  },
  {
    path: '/animation',
    name: 'animation',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/animation/index.vue')
  },
  {
    path: '/park',
    name: 'park',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/park/index.vue')
  },
  {
    path: '/gtlf',
    name: 'gtlf',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/gtlf/index.vue')
  },
  {
    path: '/curve',
    name: 'curve',
    component: () => import(/* webpackChunkName: "mouseOperate" */ '../views/curve/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
